using System;

namespace Pay.Data
{
    /// <summary>
    /// 活动产品
    /// </summary>
    [Serializable]
    public class ProductActivity {
        /// <summary>
        /// 主键Id
        /// [主键：√]
        /// [长度：19]
        /// [不允许为空]
        /// </summary>
        public long Id { get; set; }

        /// <summary>
        /// 产品Id
        /// [长度：19]
        /// [不允许为空]
        /// </summary>
        public long ProductId { get; set; }

        /// <summary>
        /// 产品SkuId
        /// </summary>
        public long ProductSkuId { get; set; }

        /// <summary>
        /// 活动Id
        /// [长度：19]
        /// [不允许为空]
        /// </summary>
        public long ActivityId { get; set; }

        /// <summary>
        /// 活动价格现金部分
        /// [长度：18，小数位数：2]
        /// [不允许为空]
        /// </summary>
        public decimal ActivityPrice { get; set; }

        /// <summary>
        /// 活动价格红钻部分
        /// </summary>
        public decimal ActivityRedDrill { get; set; }
        
        /// <summary>
        /// 活动库存
        /// </summary>
        public int ActivityStock { get; set; }
        /// <summary>
        /// 创建时间
        /// [长度：19]
        /// [不允许为空]
        /// </summary>
        public long CreateTime { get; set; }
        /// <summary>
        /// 是否售尽
        /// </summary>
        public bool IsSoldOut { get; set; }
        /// <summary>
        /// 销售数量
        /// </summary>
        public int SaleCount { get; set; }
        /// <summary>
        /// 排序（倒序：值越大越靠前）
        /// </summary>
        public int Top { get; set; }
        /// <summary>
        /// 活动
        /// </summary>
        public virtual Activity Activity { get; set; }
        /// <summary>
        /// 产品
        /// </summary>
        public virtual Product Product { get; set; }
        /// <summary>
        /// 产品规格
        /// </summary>
        public virtual ProductSku ProductSku { get; set; }
        /// <summary>
        /// 限时购
        /// </summary>
        public virtual ProductActivityTimeBuy ProductActivityTimeBuy { get;set;}
        /// <summary>
        /// 创客商品
        /// </summary>
        public virtual ProductTokenMaker ProductTokenMaker { get; set; }

    }
}
